<template>
  性别：
  <input type="radio" id="one" value="男" v-model="picked" />
  <label for="one">男</label>
  <input type="radio" id="two" value="女" v-model="picked" />
  <label for="two">女</label>
  <br /><br />
  <span>您的选择是：{{ picked }}</span>
</template>

<script>
import { reactive, toRefs } from '@vue/reactivity'
export default {
  setup () {
    const state = reactive({
      picked: ''
    })

    return {
      ...toRefs(state)
    }
  }
}
</script>
